<template>
  <div>
    <el-button @click="test">发送请求</el-button>
    <div>{{ data }}</div>
  </div>
</template>

<script setup lang="ts">
import { getInfo } from '@/api/test/test.ts'
import { ref } from 'vue'

const data = ref({})

const test = () => {
  getInfo().then(res => {
    data.value = res
  })
}

</script>

<style scoped>

</style>